package com.xue.bean;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Product implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	

	private String productId ;//產品ID
	
	private String productNm; //产品名称
	
	private Integer productCount;//产品总数量
	
	private Integer productSale;//已售出数量
	
	private Integer versionId;//数据版本号
	
	private String validStsCd;//数据有效状态

	private Date crtTime ;//创建时间

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getProductNm() {
		return productNm;
	}

	public void setProductNm(String productNm) {
		this.productNm = productNm;
	}

	public Integer getProductCount() {
		return productCount;
	}

	public void setProductCount(Integer productCount) {
		this.productCount = productCount;
	}

	public Integer getProductSale() {
		return productSale;
	}

	public void setProductSale(Integer productSale) {
		this.productSale = productSale;
	}

	public Integer getVersionId() {
		return versionId;
	}

	public void setVersionId(Integer versionId) {
		this.versionId = versionId;
	}

	public String getValidStsCd() {
		return validStsCd;
	}

	public void setValidStsCd(String validStsCd) {
		this.validStsCd = validStsCd;
	}

	public Date getCrtTime() {
		return crtTime;
	}

	public void setCrtTime(Date crtTime) {
		this.crtTime = crtTime;
	}
	
	public String toString() {
		StringBuilder str = new StringBuilder();
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		String ct = sdf.format(crtTime);
		str.append("Product [productId = ").append(productId)
		.append(" , productNm = ").append(productNm)
		.append(" , productCount = ").append(productCount)
		.append(" , productSale = ").append(productSale)
		.append(" , versionId = ").append(versionId)
		.append(" , crtTime = ").append(ct)
		.append(" , validStsCd = ").append(validStsCd)
		.append("]");		
		return str.toString();
	}
	
}
